import Axios from 'axios'


const request = config => {
    const axios = Axios.create({
        baseURL: 'http://152.136.185.210:8000/api/w6',
        timeout: 5000
    })

    axios.interceptors.request.use(config => {
        return config
    }, err => {
        return err
    })

    axios.interceptors.response.use(config => {
        return config
    }, err => {
        return err
    })

    return axios(config)
}

export default request 